<%-- 
    Document   : amministrazione
    Created on : 29-mar-2012, 12.23.22
    Author     : Danilo
--%>
<!DOCTYPE html>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<html>
<head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <title>Benvenuti nella Localit&agrave; Sciistica</title>
    <link href="style.css" rel="stylesheet" type="text/css" media="screen" />
    <link rel="shortcut icon" href="images/favicon.ico" />
    <script type="text/javascript" src="funzioni.js"></script>

</head>
<body>
    <jsp:include page="header.jsp"></jsp:include>
        <div id="page">
            <div id="sidebar">
                <ul>

                    <li>
                    <jsp:include page="login.jsp"></jsp:include>
                    </li>
                    <li>
                        <iframe width="200" height="264" scrolling="no" frameborder="no" noresize="noresize" src="http://www.ilmeteo.it/box/previsioni.php?citta=7301&type=mps1&width=200&ico=1&lang=ita&days=2&font=Times new roman&fontsize=13&bg=F0F0F0&fg=000000&bgtitle=0099FF&fgtitle=FFFFFF&bgtab=CCCCCC&fglink=1773C2"></iframe>      
                    </li>
                </ul>
            </div>
            <!-- start content -->
            <div id="content2">
                <% if(session.getAttribute("flag")!= null && ((String)session.getAttribute("flag")).equals("3")){ %>
                <form>    
                    <h2>Amministrazione</h2>
                    <jsp:include page="InserisciProdotto"></jsp:include>
                    <select name="operazione_amm">
                        <option value="1" selected>Autentica Nuovi Utenti</option>
                        <option value="2">Permessi Utente</option>
                        <option value="6">Aggiungi Evento</option>
                        <option value="7">Modifica/Cancella evento</option>
                    </select>
                    <input name="vai" type="submit"/>
                </form>
                <jsp:include page="ModificaAmministratore"></jsp:include>
                <%}else if(session.getAttribute("flag")!= null && ((String)session.getAttribute("flag")).equals("2")){ %>
                <form>    
                    <h2>Amministrazione</h2>
                    <jsp:include page="InserisciProdotto"></jsp:include>
                    <select name="operazione_amm">
                        <option value="3">Aggiungi prodotto</option>
                        <option value="4">Cancella prodotto</option>
                        <option value="5">Modifica prodotto</option>
                    </select>
                    <input name="vai" type="submit"/>
                </form>
                <jsp:include page="ModificaAmministratore"></jsp:include>
                <%} else { %>
                <h1>Non hai i diritti per accedere a questa pagina, pezzente!</h1>
                <%}%>
                
            </div>
        </div>
    <!-- end page -->
<jsp:include page="footer.html"></jsp:include>
</html>